package com.zuqiuzhandui.liveing.net;

import com.zuqiuzhandui.liveing.model.resultModel.CheckVerionRs;
import com.zuqiuzhandui.liveing.model.resultModel.LiveCreateRs;
import com.zuqiuzhandui.liveing.model.resultModel.LiveNumberQtyRs;
import com.zuqiuzhandui.liveing.model.resultModel.LoginRs;
import com.zuqiuzhandui.liveing.model.resultModel.MemberRs;
import com.zuqiuzhandui.liveing.model.resultModel.TeamListRs;
import com.zuqiuzhandui.liveing.model.resultModel.TeamScheduleRs;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by yq on 2016-10-10.
 */

public interface ZuqiuzhanduiApi {
    @FormUrlEncoded
    @POST
    Observable<HttpResult<Integer>> requestSendCode(@Url String url, @FieldMap Map<String,String> map);

    @FormUrlEncoded
    @POST
    Observable<HttpResult<LoginRs>> requestLogin(@Url String url, @FieldMap Map<String,String> map);

    @FormUrlEncoded
    @POST
    Observable<HttpResult<MemberRs>> requestMemberGet(@Url String url, @FieldMap Map<String,String> map);

    @FormUrlEncoded
    @POST
    Observable<HttpResult<List<TeamListRs>>> requestTeamList(@Url String url, @FieldMap Map<String,String> map);

    @FormUrlEncoded
    @POST
    Observable<HttpResult<List<TeamScheduleRs>>> requestTeamSchedule(@Url String url, @FieldMap Map<String,String> map);


    @FormUrlEncoded
    @POST
    Observable<HttpResult<LiveCreateRs>> requestLiveCreate(@Url String url, @FieldMap Map<String,String> map);


    @FormUrlEncoded
    @POST
    Observable<HttpResult<LiveNumberQtyRs>> requestLiveNubberQty(@Url String url, @FieldMap Map<String,String> map);

    @FormUrlEncoded
    @POST
    Observable<HttpResult<Integer>> requestNotify(@Url String url, @FieldMap Map<String,String> map);


    @FormUrlEncoded
    @POST
    Call<CheckVerionRs> requestUpdata(@Url String url, @FieldMap Map<String,String> map);



}
